﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Demo
{
    class worker
    {

        public int Number { get; set; }
        public String Name { get; set; }

        public String Department { get; set; }

        public worker(int number, string name, String department)
        {
            this.Name = name;
            this.Number = number;
            this.Department = department;
        }

        public worker()
        {
            
        }

        public void Print()
        {
            Console.WriteLine("工号为：{0}", this.Number);
            Console.WriteLine("姓名为：{0}", this.Name);
            Console.WriteLine("部门为：{0}", this.Department);
            Console.ReadKey();
        }

    }
}
